<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <h4> <h:messages globalOnly="false" style="color: red" /> </h4>

    <p:panelGrid columns="6">  
        <f:facet name="header">  
            Nuevo Articulo 
        </f:facet>  

        <h:outputLabel for="id" value="ID:" />  
        <p:inputText id="id" value="#{articuloController.selected.id}" title="Id" disabled="true" size="3" />  

        <h:outputLabel for="nombre" value="Nombre: *" />  
        <p:inputText id="nombre" value="#{articuloController.selected.nombre}" required="true"/>
        
       <h:outputLabel value="Categoria: *" for="categoria" />
       <p:selectOneMenu id="categoria" value="#{articuloController.selected.categoria}">
           <f:selectItems value="#{categoriaController.itemsAvailableSelectOne}"/>
        </p:selectOneMenu>
       
       

          
    </p:panelGrid>

</ui:composition>

